import axios from 'axios'

const request = axios.create({
  baseURL: '/hala',
  timeout: 5000
})
// 请求拦截
request.interceptors.request.use(config => {
  return config
}, (err) => {
  return Promise.reject(err)
})
// 响应拦截
axios.interceptors.response.use(response => {
  return response
}, error => {
  return Promise.reject(error)
})

export default request
